<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>&nbsp;</title>
    </head>
    <body>
        <#if operationLog??>
         <form id="fm" method="post" action="app/operationLog/update">
         <input type="hidden" name="id" value="${(operationLog.id)!}">
        <#else>
         <form id="fm" method="post" action="app/operationLog/add">
        </#if>
        
                <table style="width:100%">
                    <tbody>
                        <tr>
                            <td>用户ID:${(operationLog.user_id)!}</td>
                        </tr>
                        <tr><td>&nbsp;</td></tr>
                        <tr>
                            <td>IP：${(operationLog.ip)!}</td>
                        </tr>
                        <tr><td>&nbsp;</td></tr>
                        <tr>
                            <td>用户昵称:${(operationLog.uname)!}</td>
                        </tr>
                        <tr><td>&nbsp;</td></tr>
                        <tr>
                            <td>操作内容:${(operationLog.content)!}</td>
                        </tr>
                        <tr><td>&nbsp;</td></tr>
                        <tr>
                            <td>操作时间:${(operationLog.create_time)!}</td>
                        </tr>
                    </tbody>
                </table>
               
        </form>
        <div style="text-align:center;padding:5px">
            <!-- <a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()" style="width:80px">保存</a> -->
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <#if operationLog??>
                <a href="javascript:void(0)" class="easyui-linkbutton" onclick="closeForm()" style="width:80px">关闭</a>
            <#else> 
                <a href="javascript:void(0)" class="easyui-linkbutton" onclick="clearForm()" style="width:80px">重置</a>
            </#if>
        </div>
       
       <script type="text/javascript">
            function submitForm(){
                $('#fm').form('submit',{
                	success:function(){
                		$('#form').dialog('close');
                	}
                });
            }
            function clearForm(){
                $('#fm').form('clear');
            }
            function closeForm(){
            	$('#form').dialog('close');
            }
       </script>
    </body>
     
</html>
